package com.xgc.book.bookserver.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xgc.book.bookserver.bean.VipTokenBean;
import com.xgc.book.bookserver.mapper.VipTokenMapper;
import com.xgc.book.bookserver.service.VipTokenService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 会员token记录表 服务实现类
 * </p>
 *
 * @author wrz
 * @since 2023-11-20
 */
@Service
@Transactional
public class VipTokenServiceImpl extends ServiceImpl<VipTokenMapper, VipTokenBean> implements VipTokenService {

    @Override
    public VipTokenBean getByToken(String token) {
        return this.getOne(new QueryWrapper<VipTokenBean>().eq("token", token));
    }
}
